import request from '@/utils/request'



/**
 * send set pay password SMS
 * @param {Object} data
 */
export function sendSetPayPasswordSMS(data) {
  return request({
    url: '/api/sendSetPayPasswordSMS',
    method: 'post',
    data
  })
}

/**
 * Has a transaction password been set
 * @param {Object} data
 */
export function isSetPayPassword(data) {
  return request({
    url: '/api/isSetPayPassword',
    method: 'post',
    data
  })
}

/**
 * edit password
 * @param {Object} data
 */
export function modifyPayPassword(data) {
  return request({
	//url: '/api/modifyPayPassword',
	url: '/register/verifySMSUpdateLoginPwd.do',
    method: 'post',
    data
  })
}

/**
 * reset Password send SMS
 * @param {Object} data
 */
export function sendResetPayPasswordSMS(data) {
	return request({
	  url: '/api/sendResetPayPasswordSMS',
	  method: 'post',
	  data
	})
}

/**
 * reset Password submit
 * @param {Object} data
 */
export function resetPayPassword(data) {
	return request({
	  url: '/registerEmail/verifyEmailReSetLoginPwd',
	  method: 'post',
	  data
	})
}
